package com.xgg.taiwuinfo.gongfa.abilities;

import android.content.Context;

//运功时的治疗及守御效果
public class Ability_YunGong_Heal
{
    final int Defend;
    final int Heal;
    final int HealPoison ;

    public static final int Count = 3;

    public int getDefend(){return Defend;}

    public int getHeal(){return Heal;}

    public int getHealPoison(){return HealPoison;}

    public Ability_YunGong_Heal(int [] heal)
    {
        Defend  = heal[0];
        Heal  = heal[1];
        HealPoison  = heal[2];
    }

    public String getDescString(Context ctx)
    {
        String rt = "";
        if (Defend !=  0) { String str = String.format("守御效率: +%d%%\r\n" , Defend); rt += str;}
        if (Heal !=  0) { String str = String.format("疗伤效率: +%d%%\r\n" , Heal); rt += str;}
        if (HealPoison !=  0) { String str = String.format("驱毒效率: +%d%%\r\n" , HealPoison); rt += str;}
        return rt;
    }

}
